using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;

namespace WFTest.Entity
{
    public partial class Model7 : DbContext
    {
        public Model7()
            : base("name=Model7")
        {
        }

        public virtual DbSet<V_AP_PAYBILL> V_AP_PAYBILL { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<V_AP_PAYBILL>()
                .Property(e => e.FDOCUMENTSTATUS)
                .IsUnicode(false);

            modelBuilder.Entity<V_AP_PAYBILL>()
                .Property(e => e.FPAYAMOUNTFOR)
                .HasPrecision(23, 10);

            modelBuilder.Entity<V_AP_PAYBILL>()
                .Property(e => e.FREALPAYAMOUNTFOR)
                .HasPrecision(23, 10);
        }
    }
}
